import time
from functools import reduce

def metric(fn):
    def get_time(*args,**kw):
        start_time = time.time()
        fn(*args,**kw)
        end_time = time.time()
        print('耗时:{:.4f}s'.format(end_time - start_time))

    return get_time


DIGITS = {'0': 0, '1': 1, '2': 2, '3': 3, '4': 4, '5': 5, '6': 6, '7': 7, '8': 8, '9': 9}

@metric
def fib(max):
    n, a, b = 0, 0, 1
    while n < max:
        #print(b)
        a, b = b, a + b
        n = n + 1
    return 'done'

fib(60000)